/*
*   api接口统一管理
*/
import { get, post, post2 } from './http'

// 获取微信jssdk签名
export const wxConfigApi = (params) => post('api/merchant/getShare', params);
// 微信登陆
export const wxLogin = (params) => post('api/user/wx_login', params);
/*
* 分类商品列表
*/
export const ClassifyItem = (params) => post('api/item/getItemList', params);
/*
* 分类列表
*/
export const Classify = (params) => post('api/Item/getItemCate', params);
/*
* 绑定手机号
*/
export const bindmobile = (params) => post('api/user/bindMobile', params);
/*
* 获取验证码
*/
export const sendMessage = (params) => post('api/User/send_code', params);


/*
* ----------------------首页模块-----------------------
*/
/*
* 首页
*/
export const home = (params) => post('api/index/index', params);
/*
* 好物推荐
*/
export const bestgoods = (params) => post('api/index/goodItem', params);
/* 
首页搜索记录
 */
export const Search = (params) => post('api/index/keyword_list',params);
/* 
 进行搜索
 */
export const SearchList = (params) => post('api/index/search',params);
/* 
 删除搜索记录
 */
export const ClearHis = (params) => post('api/index/delhistory',params);
/*
* 头部分类
*/
export const cateList = (params) => post('api/index/homeCate', params);
/*
* 虚拟商品详情
*/
export const fdetail = (params) => post('api/item/ticketDetail', params);
/*
* 虚拟商品确认订单信息
*/
export const fconform = (params) => post('api/Order/ticketDetail', params);
/*
* 虚拟商品提交订单
*/
export const createOrder = (params) => post('api/Order/ticketOrder', params);
/*
* 提交订单页面
*/
export const waitOrder = (params) => post('api/item/getScenicDetail', params);
/*
* 支付
*/
export const orderpay = (params) => post('api/pay/pay', params);
/*
* 分享二维码
*/
export const shareInfo = (params) => post('api/item/invitePoster', params);

/**
 * 获取购物车里商品数量
 */
export const cartNums = (params) => post('api/cart/get_cart_num', params);
/**
 * 购物车
 */
export const cart = (params) => post('api/item/getShopingCart', params);
/**
 * 加入购物车
 */
export const addIncart = (params) => post('api/item/addShopingCart', params);
/**
 * 删除购物车
 */
export const cartDel = (params) => post('api/item/delShopingCart', params);
/**
 * 购物车数量加减
 */
export const cartEdit = (params) => post('api/item/addShopingCartNums', params);


/**
 * 个人中心
 */
export const centers = (params) => post('api/Mycenter/my_center',params);
/**
 * 收藏列表
 */
export const collectlist = (params) => post('api/collection/getCollectLists',params);
/**
 * 收藏编辑
 */
export const collectedit = (params) => post('api/collection/setCollect',params);
/**
 * 单、多取消收藏
 */
export const collecteDel = (params) => post('api/collection/delCollect',params);
/**
 * 意见反馈
 */
export const feedBack = (params) => post('api/message/setFeedback',params);
/**
 * 虚拟订单列表
 */
export const orderlists = (params) => post('api/Order/ticketList',params);
/**
 * 实物订单列表
 */
export const sorderlists = (params) => post('api/Order/ticketList',params);
/**
 * 虚拟订单详情
 */
export const orderDetail = (params) => post('api/Order/ticketDetail',params);
/**
 * 实物订单详情
 */
export const sorderDetail = (params) => post('api/Order/getOrderDetail',params);
/**
 * 分享规则
 */
export const sharerule = (params) => post('api/Distribution/rule',params);
/**
 * 佣金明细
 */
export const earndetail = (params) => post('api/distribution/detailedCommission',params);
/*
分销中心
*/
export const disCenter = (params) => post('api/distribution/center',params);
/*
分销订单
*/
export const disOrder = (params) => post('api/distribution/rebateOrder',params);
/*
我的团队
*/
export const myTeam = (params) => post('api/distribution/team',params);
/*
邀请好友
*/
export const invite = (params) => post('api/Distribution/invite',params);
/*
提现中心
*/
export const cash = (params) => post('api/bank/withdraw_info',params);
/*
获取分享二维码
*/
export const invitePost = (params) => post('api/Distribution/invitePoster',params);
/*
删除订单
*/
export const orderdel = (params) => post('api/Order/setDelOrder',params);
/*
取消订单
*/
export const ordercancel = (params) => post('api/Order/cancelOrder',params);
/*
评价页面
*/
export const evaluate = (params) => post('api/Evaluate/getAddEvaluate',params);
/*
评价
*/
export const makeevaluate = (params) => post('api/Evaluate/addevaluate',params);
/*
核销码
*/
export const writeoffCode = (params) => post('api/Order/cancelCode',params);
/*
当季热卖
*/
export const hotlist = (params) => post('api/index/hotItem',params);

/*
显示预订须知
*/
export const getScenicDetail = (params) => post('api/item/getScenicDetail',params);
/*
普通商品详情
*/
export const getItemDetail = (params) => post('api/item/getItemDetail',params);
/* 
获取多规格商品 
*/
export const getItemSku = (params) => post('api/item/getItemSku',params)
/* 
 用户地址列表
 */
export const ReciveAddress = (params) => post('api/Adress/getAddress',params)
/* 
设置默认地址 
 */
export const SetDefaultAdd = (params) => post('api/Adress/setDefault',params)
/* 
 删除地址
 */
export const DelAddress = (params) => post('api/Adress/delAddress',params)
/* 
新增地址 
 */
export const AddAddress = (params) => post('api/Adress/addAddress',params)
/* 
 修改地址
 */
export const SubEditAdd = (params) => post('api/Adress/updateAddress',params)
/* 
 直接购买/购物车购买 生成订单
 */
export const ProductOrder = (params) => post('api/Order/setProductionOrder',params)
/* 
 获取购物车数量
 */
export const CartNum = (params) => post('api/item/cartNum',params)
/* 
 实物订单列表
 */
export const orderList = (params) => post('api/Order/orderList',params)
/* 
 实物详情
 */
export const getOrderDetail = (params) => post('api/Order/getOrderDetail',params)
/* 
获取我的订单个数
 */
export const getOrderNum = (params) => post('api/mycenter/getOrderNum',params)
/* 
 积分商城首页
 */
export const getIntegral = (params) => post('api/integral/integral',params)
/* 
 积分规则
 */
export const getRule = (params) => post('api/integral/getRule',params)
/* 
积分明细 
 */
export const getScore = (params) => post('api/integral/score_log',params)
/* 
 积分商城的兑换记录
 */
export const getExchange = (params) => post('api/integral/exchange_log',params)
/* 
 积分商品详情
 */
export const getMallDetail = (params) => post('api/integral/integral_details',params)
/* 
 积分兑换
 */
export const getIntegralOrder = (params) => post('api/integral/getIntegralOrder',params)
/* 
 上传图片
 */
export const upLoad = (params) => post2('api/upload/upload',params)
/* 
 订单评价
 */
export const Addevaluate = (params) => post('api/Evaluate/addevaluate',params)
/* 
获取评价列表 
 */
export const EvaluateList = (params) => post('api/item/evaluateList',params)
/* 
 关于我们
 */
export const AboutUs = (params) => post('api/mycenter/getRule',params)
/* 
旅游达人首页 
 */
export const TravelIndex = (params) => post('api/Coupon/travel_index',params)
/* 
 旅游达人列表
 */
export const MyCoupons = (params) => post('api/Coupon/userCouponList',params)
/* 
 旅游达人购买大礼包
 */
export const TravelPay = (params) => post('api/pay/travelPay',params)
/* 
 旅游达人购买
 */
export const TravelBuy = (params) => post('api/Coupon/travel_buy',params)
/* 
 微信提现
 */
export const Withdraw = (params) => post('api/bank/apply_withdraw',params)
/* 
 选择合适的优惠券
 */
export const Suitable = (params) => post('api/Order/suitable',params);
/* 
 出行人列表
 */
export const tripList = (params) => post('api/Adress/tripList',params);
/* 
 添加出行人
 */
export const addTrip = (params) => post('api/Adress/addTrip',params);
/* 
 删除出行人
 */
export const delTrip = (params) => post('api/Adress/delTrip',params);
/* 
 确认收货
 */
export const confirmOrder = (params) => post('api/Order/confirm_order',params);
/* 
 查看物流
 */
export const lookLogistics = (params) => post('api/order/lookLogistics',params);
/* 
 申请售后,申请退款
 */
export const ApplyAfterSale = (params) => post('api/order/applyAfterSale',params);
/* 
 取消售后订单
 */
export const CancelRefund = (params) => post('api/Order/cancelRefund',params);
// 秒杀详情
export const getLimitDiscountDetail = (params) => post('api/Marketing/getLimitDiscountDetail',params);
// 拼团中心
export const getGroupBuyGoods = (params) => post('api/Marketing/getGroupBuyGoods',params);
// 秒杀列表
export const getLimitDiscountGoods = (params) => post('api/Marketing/getLimitDiscountGoods',params)
//开团列表的查看更多
export const getJoinGroupbuyList = (params) => post('api/Marketing/getJoinGroupbuyList',params)
// 获取拼团中信息
export const groupbuying = (params) => post('api/Marketing/groupbuying',params)